<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
		<script type="text/javascript">
			/*
				基本数据类型
				String Number Boolean Null Undefined
				引用数据类型
				Object
			JS中的变量都保存在栈内存中
			基本数据类型的值直接在栈内存中存储
			*/
			
			var a =123;
			var b = a;
			a++;
			
			var obj = new Object();
			obj.name = "孙悟空";
			
			var obj2 = obj;
			
			//修改obj的name属性
			obj.name = "牛";
			
			console.log(obj.name);
			console.log(obj2.name);
			
		</script>
	</body>
</html>
